<?php
/**
 * Created by PhpStorm.
 * User: liuxiu
 * Date: 2022/3/1
 * Time: 11:06
 */

namespace business\elasticsearch\types;


class SubsBiddingMapConfigType
{
    public static function mapConfig()
    {
        return [
            'properties' => [
                'uid' => ['type' => 'long'],
                'title' => [
                    'type' => 'text',
                    'fields'      => [
                        'keyword' => [
                            'ignore_above' => 256,
                            'type'         => 'keyword'
                        ]
                    ]
                ],
                'intro' => ['type'  => 'text'],
                'province_code' => ['type' => 'text'],
                "province_name" => ['type' => 'text'],
                "source_type" => ['type' => 'integer'],
                "release_time" => [
                    'type'        => 'date',
                    'format'      => 'yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis'
                ],
                "stage" => ['type' => 'integer']
            ]
        ];
    }
}